package com.baiye.template.service;

import com.baiye.template.pojo.Permission;
import com.baiye.template.pojo.Role;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author GUOZHIPENG
 * @version 1.0
 * @date 2021/9/7 16:46
 */
public interface PermissionService {
    int deleteById(int id);

    int addPermission(Permission permission);

    int addPermissionToRole(int roleId,int permissionId);

    int deletePermissionToRole(int roleId,int permissionId);

    List<Permission> getPermission(Permission permission, Integer pageIndex,Integer pageSize);

    List<Permission> getPermissionByRoleId(Integer roleId);

    int updatePermission(Permission permission);

    List<Role> selectListByPath(String requestUrl);
}
